﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Generic
{
 
        public interface ISport
        {
            void PingPang();
        }
        public interface IWork
        {
            void Work();
        }

    public class Person
    {
         public int ID { get; set; }
        public string Name { get; set; }
        public void Hi()
        {
        }
    }

        public class Chinese : Person, ISport, IWork
        {
            public string Tradition;
            void ISport.PingPang()
            {
                Console.Write("打乒乓球...");
            }

            void IWork.Work()
            {
                Console.WriteLine("Work...");
            }

        }

        public class Hubei : Chinese
        {
            public string Changjiang { get; set; }
            public void Majiang()
            {
                Console.WriteLine("打麻将啦。。");
            }
        }

        public class Japanese : ISport
        {
            public int ID{ get; set; }
            public string Name { get; set; }
            public void PingPang()
            {
                Console.WriteLine("打乒乓球...");
            }
        }


    }

